package stattracker;

public class Halo3GameData implements Comparable<Halo3GameData>, java.io.Serializable
{
	private static final long serialVersionUID = 1L;
	private long id;
	private Halo3BasicGameData basicInfo;
	private Halo3ComplexGameData detailedInfo;
	
	public Halo3GameData(long id, Halo3BasicGameData info, Halo3ComplexGameData detail)
	{
		this.id = id;
		basicInfo = info;
		detailedInfo = detail;
	}
	
	public static Halo3GameData getBlank()
	{
		Halo3BasicGameData basic = new Halo3BasicGameData("", "", "", "", "", "");
		Halo3ComplexGameData detail = new Halo3ComplexGameData();
		return new Halo3GameData(0, basic, detail);
	}
	
	public long getID()
	{
		return id;
	}
	
	public Halo3BasicGameData getInfo()
	{
		return basicInfo;
	}
	
	public Halo3ComplexGameData getDetail()
	{
		return detailedInfo;
	}
	
	public int compareTo(Halo3GameData other)
	{
		return ((Long)id).compareTo(other.getID());
	}
	
	public String toString()
	{
		return "ID: " + id + " \n" + basicInfo.getString() + "\n" + detailedInfo.getString();
	}
}

